package com.mac.hosp_pre.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mac.hosp_pre.admin.entity.HospitalConfig;
import com.mac.hosp_pre.admin.model.req.HospitalConfigReqDto;
import com.mac.hosp_pre.admin.model.req.HospitalQueryReqDto;
import com.mac.hosp_pre.admin.model.resp.HospitalConfigRespDto;
import com.mac.hosp_pre.admin.model.resp.SignInfoRespDto;

public interface HospitalConfigService extends IService<HospitalConfig> {

    /**
     * 根据医院编码,查询签名
     * @param hospCode
     * @return
     */
    String getSignKey(String hospCode);

    /**
     * 获取医院签名信息
     */
    SignInfoRespDto getSignInfo(String hospCode);

    IPage<HospitalConfigRespDto> findPageHospConfig(HospitalQueryReqDto hospitalSetQuery);

    void add(HospitalConfigReqDto hospitalConfigReq);

    HospitalConfigRespDto getHospConfig(Long id);

    void updateHospitalConfig(HospitalConfigReqDto hospitalSet);

    void lockHospitalConfig(Long id, Integer status);

    void sendKey(Long id);
}
